package com.velvetantler.weather.view.home

import com.qweather.sdk.response.weather.WeatherHourlyResponse
import com.qweather.sdk.response.weather.WeatherNowResponse
import com.velvetantler.weather.base.BaseView
import com.velvetantler.weather.bean.CityInfo

interface HomeView : BaseView {

    /**
     * 获取当前天气数据成功
     */
    fun getWeatherNowDataSucceed(response: WeatherNowResponse)

    /**
     * 获取当前天气数据失败
     */
    fun getWeatherNowDataFailed(message: String)

    /**
     * 获取未来24小时天气数据成功
     */
    fun getWeatherHourlyDataSucceed(response: WeatherHourlyResponse)

    /**
     * 获取未来24小时天气数据失败
     */
    fun getWeatherHourlyDataFailed(message: String)

    /**
     * 获取城市列表信息成功
     */
    fun getCityListDataSucceed(response: List<CityInfo>)

    /**
     * 获取城市列表信息失败
     */
    fun getCityListDataFailed(message: String)
}